how to display array in string in c#

72

how to display array in string in c# -

 Console.WriteLine("[{0}]", string.Join(", ", yourArray));
 //output style:  [8, 1, 8, 8, 4, 8, 6, 8, 8, 8]

Comments

Submit
0 Comments